package com.cuif.aop.pojo;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 观众 - 环绕通知
 * @author cuif
 *
 */
public class AudienceAround {
	
	public Object watch(ProceedingJoinPoint pjp){
		try {
			System.out.println("takeSeat");
			System.out.println("turnOffCellphone");
			Object o = pjp.proceed();
			System.out.println("applaud");
			return o;
		} catch (Throwable e) {
			System.out.println("demandMoney");
		}
		finally{
			System.out.println("goHome");
		}
		return null ;
	}
}
